import {createApp} from 'vue'
import App from './App.vue'
import router from './router'

import '@/assets/scss/index.scss'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


import installIcon from '@/icons'
import "@/utils/permission.js"
import {createPinia} from 'pinia'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// import piniaPersist from 'pinia-plugin-persist'

// import piniaPersist from "pinia";

const pinia = createPinia()

// pinia.use(piniaPersist)

export default pinia
const app = createApp(App)

// 引入icon图标
installIcon(app);


app.use(router).use(ElementPlus,{locale:zhCn}).use(pinia).mount("#app");
